Part Number Hot Search : 
SA8803 S1021 00110 2SA1177 NTC22 KBPC50 S1021 S1021
Product Description
Full Text Search
 

To Download ACE1101BVN Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications ace1101 product family arithmetic controller engine (acex?) for low power applications general description the ace1101 (arithmetic controller engine) family of microcontrollers is a dedicated programmable monolithic inte- grated circuit for applications requiring high performance, low power, and small size. it is a fully static part fabricated using cmos technology. the ace1101 product family has an 8-bit microcontroller core, 64 bytes of ram, 64 bytes of data eeprom and 1k bytes of code eeprom. its on-chip peripherals include a multi-function 16-bit timer, watchdog/idle timer, and programmable under-voltage detection circuitry. on-chip clock and reset functions reduce the number of required external components. the ace1101 product family is available in 8-pin tssop, 8-pin dip and 14-pin dip packages. features  arithmetic controller engine  1k bytes on-board code eeprom  64 bytes data eeprom  64 bytes ram  watchdog  multi-input wake-up on all i/o pins  16-bit multifunction timer block and connection diagram preliminary august 2001  on-chip oscillator ?no external components ?1 s instruction cycle time  on-chip power-on reset  brown-out reset  programmable read and write disable functions  memory mapped i/o  multi-level low voltage detection  fully static cmos ?low power halt mode (100na @ 3.3v) ?power saving idle mode  single supply operation ?1.8-5.5v (ace1101l) ?2.2-5.5v (ace1101) ?2.7-5.5v (ace1101b)  software selectable i/o options ?push-pull outputs with tri-state option ?weak pull-up or high impedance inputs  40 years data retention  1,000,000 writes  8-pin tssop, 8 and 14-pin dip packages. (soic and csp packages available upon request)  in-circuit programming power-on reset v cc 1 g0 (cko) g1 (cki) g2 (t1) g3(input only) g4 g5 g6 2 g7 2 internal oscillator g port general purpose i/o with multi- input wakeup low battery/brown-out detect 1. 100nf decoupling capacitor recommended 2. available only in the 14-pin package option. watchdog/ 12-bit timer 0 ace1101 control unit 64 bytes of data eeprom programming interface 1k bytes of code eeprom 16-bit timer 1 halt/idle power saving modes ram block 64 bytes gnd 1 reset 2 ? 2001 fairchild semiconductor corporation
2 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications v cc v cc optional led rf stage rf interface g0 g1 g5 g2 gnd g4 g3 figure 2: ace1101 application example (remote keyless entry) g3 vcc gnd g2 g1 1 2 3 45 6 7 8 g4 g0 g5 load vcc gnd sft_out cki 1 2 3 45 6 7 8 sft_in nc/vcc nc figure 3: ace1101 tssop/dip 8-pin device b) programming mode operation figure 4: ace1101 dip 14-pin device b) programming mode operation g3 vcc gnd g1 1 2 3 4 5 6 78 g4 nc 9 10 11 12 13 14 g6 g7 g5 nc nc g2 reset g0 load vcc gnd cki 1 2 3 4 5 6 78 sft_in nc nc 9 10 11 12 13 14 nc nc nc/vcc nc nc sft_out reset a) normal mode operation a) normal mode operation
3 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications absolute maximum ratings ambient storage temperature -65 c to +150 c input voltage not including g3 -0.3v to v cc +0.3v g3 input voltage 0.3v to 13v lead temperature (10s max) +300 c electrostatic discharge on all pins 2000v min operating conditions relative humidity (non-condensing) 95% eeprom write limits see dc electrical characteristics 2.0 electrical characteristics device operating voltage ambient operating temperature ace1101 2.2 to 5.5v 0 c to 70 c ace1101e 2.2 to 5.5v -40 c to +85 c ace1101v 2.2 to 5.5v -40 c to +125 c ace1101b 2.7 to 5.5v 0 c to 70 c ace1101be 2.7 to 5.5v -40 c to +85 c ace1101bv 2.7 to 5.5v -40 c to +125 c ace1101l 1.8 to 5.5v 0 c to 70 c
4 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications preliminary ace1101/1101b/1101l dc electrical characteristics v cc = 2.2/2.7/1.8 to 5.5v all measurements valid for ambient operating temperature range unless otherwise stated. symbol parameter conditionsmin typ max units i cc 3 supply current 1.8v 0.2 0.5 ma no data eeprom write in 2.2v 0.4 1.0 ma progress 2.7v 0.7 1.2 ma 3.3v 1.2 2.0 ma 5.5v 3.7 5.5 ma i cch halt mode current 3.3v @ -40 c to +25 c 10 100 na 5.5v @ -40 c to +25 c 60 1000 na 3.3v @ +85 c 75 1000 na 5.5v @ +85 c 400 2500 na 3.3v @ +125 c 600 5000 na 5.5v @+125 c 1550 8000 na i ccl 4 idle mode current 3.3v 150 200 a 5.5v 200 300 a v ccw eeprom write voltage code eeprom in 4.5 5.0 5.5 v programming mode data eeprom in 2.4 5.5 v operating mode s vcc power supply slope 1 s/v 10ms/v v il input low with schmitt v cc = 1.8 -5.5v 0.2v cc v trigger buffer v ih input high with schmitt v cc = 1.8 - 5.5v 0.8v cc v trigger buffer i ip input pull-up current v cc =5.5v, v in =0v 30 65 350 a i tl tri-state leakage v cc =5.5v 2 200 na v ol output low voltage v cc = 1.8 - 2.2v g0, g1, g2, g4, g6, g7 0.8 ma sink 0.2v cc v g5 1.0 ma sink 0.2v cc v output low voltage v cc = 2.2v 3.3v g0, g1, g2, g4, g6, g7 3.0 ma sink 0.2v cc v g5 5.0 ma sink 0.2v cc v output low voltage v cc = 3.3v 5.5v g0, g1, g2, g4, g6, g7 5.0 ma sink 0.2v cc v g5 10.0 ma sink 0.2v cc v v oh output high voltage v cc = 1.8 - 2.2v g0, g1, g2, g4, g6, g7 0.1 ma source 0.8v cc v g5 0.2 ma source 0.8v cc v output high voltage v cc = 3.3v 5.5v g0, g1, g2, g4, g6, g7 0.4 ma source 0.8v cc v g5 0.8 ma source 0.8v cc v output high voltage v cc = 3.3v 5.5v g0, g1, g2, g4, g6, g7 0.4 ma source 0.8v cc v g5 1.0 ma source 0.8v cc v 3 i cc active current is dependent on the program code. 4 based on a continuous idle looping program.
5 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications preliminary ace1101/1101b/1101l ac electrical characteristics v cc = 2.2/2.7/1.8 to 5.5v all measurements valid for ambient operating temperature range unless otherwise stated. parameter conditionsmin typ max units instruction cycle time from 5.0v at +25 c 0.9 1.0 1.1 s internal clock - setpoint internal clock voltage dependent 3.0v to 5.5v, +5 % frequency variation constant temperature internal clock temperature 3.0v to 5.5v, +10 % dependent frequency variation full temperature range internal clock frequency 3.0v to 4.5v, +2 % deviation for 0.5v drop constant temperature crystal oscillator frequency (note 5) 4 mhz external clock frequency (note 6) 4 mhz eeprom write time 3 10 ms internal clock start up time (note 6) 2 ms oscillator start up time (note 6) 2400 cycles 5 the maximum permissible frequency is guaranteed by design but not 100% tested. 6 the parameter is guaranteed by design but not 100% tested. preliminary ace1101/1101b/1101l electrical characteristics for programming all data following is valid between 4.5v and 5.5v at ambient temperature. the following charac- teristics are guaranteed by design but are not 100% tested. see "eeprom write time" in the ac electrical characteristics for definition of the programming ready time. parameter description min max units t hi clock high time 500 dc ns t lo clock low time 500 dc ns t dis shift_in setup time 100 ns t dih shift_in hold time 100 ns t dos shift_out setup time 100 ns t doh shift_out hold time 900 ns t sv1 , t sv2 load supervoltage timing 50 s t load1 , t load2 , t load3 , t load4 load timing 5 s v supervoltage supervoltage level 11.5 12.5 v
6 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications preliminary ace1101/1101l low battery detect (lbd) characteristics v cc = 2.2/1.8 to 5.5v the following characteristics are guaranteed by design but are not 100% tested. parameter conditionsmin typ max units lbd voltage threshold level 1 @ -40 c 2.84 v level 8 @ -40 c 2.02 v level 1 @ 0 c 2.98 v level 8 @ 0 c 2.05 v level 1 @ +25 c 3.08 v level 8 @ +25 c 2.12 v level 1 @ +85 c 3.31 v level 8 @ +85 c 2.27 v level 1 @ +125 c 3.36 v level 8 @ +125 c 2.40 v preliminary ace1101 brown-out reset (bor) characteristics v cc = 2.2 to 5.5v the following characteristics are guaranteed by design but are not 100% tested. parameter conditionsmin typ max units bor trigger threshold -40 c 1.98 v 0 c 2.06 v +25 c 2.12 v +85 c 2.27 v +125 c 2.37 v preliminary ace1101l brown-out reset (bor) characteristics v cc = 1.8 to 5.5v the following characteristics are guaranteed by design but are not 100% tested. parameter conditionsmin typ max units bor trigger threshold 0 c 1.78 v +25 c 1.82 v +70 c 1.96 v
7 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications frequency (mhz) temperature [ c] 3.0 ac & dc electrical characteristic graphs figure 5: rc oscillator frequency vs. temperature (v cc =5.0v) 1.000 1.200 1.400 1.600 1.800 2.000 2.200 2.400 2.600 3.3k/82pf 5.6k/100pf 6.8k/100pf avg min max frequency (mhz) 0.600 0.800 1.000 1.200 1.400 1.600 3.3k/82pf 5.6k/100pf 6.8k/100pf avg min max frequency (mhz) resistor & capacitor values [k & pf] figure 6: rc oscillator frequency vs. temperature (v cc =2.5v) resistor & capacitor values [k & pf] figure 7: internal oscillator frequency
8 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications t s min t s actual t s max time v cc v batt 1v figure 8: power supply rise time name parameter unit v cc supply voltage [v] v batt battery voltage (nominal operating voltage) [v] t s min minimum time for v cc to rise by 1v [ms] t s actual actual time for v cc to rise by 1v [ms] t s max maximum time for v cc to rise by 1v [ms] s vcc power supply slope [ms/v]
9 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications figure 9: i cc active icc active (ma) temperature [ c] icc active (ma) temperature [ c] i cc active (data eeprom writes) vs. temperature i cc active (no data eeprom writes) vs. temperature
10 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications figure 10: halt mode currents temperature [ c] icc halt (na) halt current vs. temperature
11 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications icc idle ( a) figure 11: idle mode currents idle current vs. temperature temperature [ c]
12 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 4.0 arithmetic controller core the acex microcontroller core is specifically designed for low cost applications involving bit manipulation, shifting block encryp- tion. it is based on a modified harvard architecture meaning peripheral, i/o, and ram locations are addressed separately from instruction data. the core differs from the traditional harvard architecture by aligning the data and instruction memory sequentially. this allows the x-pointer (11-bits) to point to any memory location in either figure 12: programming model 8-bit accumulator register 11-bit x pointer register 10-bit program counter 4-bit stack pointer 8-bit status register negative flag half carry flag (from bit 3) carry flag (from msb) zero flag global interrupt mask ready flag (from eeprom) a x pc sp sr 0 0 0 0 n h c z g 0 0 r 7 10 9 3 segment of the memory map. this modification improves the overall code efficiency of the acex microcontroller and takes advantage of the flexibility found on von neumann style ma- chines. 4.1 cpu registers the acex microcontroller has five general-purpose registers. these registers are the accumulator (a), x-pointer (x), program counter (pc), stack pointer (sp), and status register (sr). the x, sp, and sr registers are all memory-mapped.
13 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 4.1.1 accumulator (a) the accumulator is a general-purpose 8-bit register that is used to hold data and results of arithmetic calculations or data manipu- lations. 4.1.2 x-pointer (x) the x-pointer register allows for an 11-bit indexing value to be added to an 8-bit offset creating an effective address used for reading and writing between the entire memory space. (software can only read from code eeprom.) this provides software with the flexibility of storing lookup tables in the code eeprom memory space for the core s accessibility during normal operation. the acex core allows software to access the entire 11-bit x- pointer register using the special x-pointer instructions (e.g. ld x, #000h). (see table 9) however, software may also access the register through any of the memory-mapped instructions using the xhi (x[10:8]) and xlo (x[7:0]) variables located at 0xbe and 0xbf, respectively. (see table 11) the x register is divided into two sections. the 10 least significant bits (lsb) of the register is the address of the program or data memory space. the most significant bit (msb) of the register is write only and selects between the data (0x000 to 0x0ff) or program (0xc00 to 0xfff) memory space. example: if bit 10 = 0, then the ld a, [00,x] instruction will take a value from address range 0x000 to 0x0ff and load it into a. if bit 10 = 1, then the ld a, [00,x] instruction will take a value from address range 0xc00 to 0xfff and load it into a. the x register can also serve as a counter or temporary storage register. however, this is true only for the 10-lsbs since the 11 th bit is dedicated for memory space selection. 4.1.3 program counter (pc) the 10-bit program counter register contains the address of the next instruction to be executed. after a reset, if in normal mode the program counter is initialized to 0xc00. 4.1.4 stack pointer (sp) the acex microcontroller has an automatic program stack with a 4- bit stack pointer. the stack can be initialized to any location between addresses 0x30-0x3f. normally, the stack pointer is initialized by one of the first instructions in an application program. after a reset, the stack pointer is defaulted to 0xf pointing to address 0x3f. the stack is configured as a data structure which decrements from high to low memory. each time a new address is pushed onto the stack, the core decrements the stack pointer by two. each time an address is pulled from the stack, the core increments the stack pointer is by two. at any given time, the stack pointer points to the next free location in the stack. when a subroutine is called by a jump to subroutine (jsr) instruction, the address of the instruction is automatically pushed onto the stack least significant byte first. when the subroutine is finished, a return from subroutine (ret) instruction is executed. the ret instruction pulls the previously stacked return address from the stack and loads it into the program counter. execution then continues at the recovered return address. 4.1.5 status register (sr) this 8-bit register contains four condition code indicators (c, h, z, and n), one interrupt masking bit (g), and an eeprom write flag (r). in the acex microcontroller, condition codes are automati- cally updated by most instructions. (see table 10) carry/borrow (c) the carry flag is set if the arithmetic logic unit (alu) performs a carry or borrow during an arithmetic operation and by its dedicated instructions. the rotate instruction operates with and through the carry bit to facilitate multiple-word shift operations. the ldc and invc instructions facilitate direct bit manipulation using the carry flag. half carry (h) the half carry flag indicates whether an overflow has taken place on the boundary between the two nibbles in the accumulator. it is primarily used for binary coded decimal (bcd) arithmetic calculation. zero (z) the zero flag is set if the result of an arithmetic, logic, or data manipulation operation is zero. otherwise, it is cleared. negative (n) the negative flag is set if the msb of the result from an arithmetic, logic, or data manipulation operation is set to one. otherwise, the flag is cleared. a result is said to be negative if its msb is a one. interrupt mask (g) the interrupt request mask (g) is a global mask that disables all maskable interrupt sources. if the g bit is cleared, interrupts can become pending, but the operation of the core continues uninter- rupted. however, if the g bit is set an interrupt is recognized. after any reset, the g bit is cleared by default and can only be set by a software instruction. when an interrupt is recognized, the g bit is cleared after the pc is stacked and the interrupt vector is fetched. once the interrupt is serviced, a return from interrupt instruction is normally executed to restore the pc to the value that was present before the interrupt occurred. the g bit is reset to one after a return from interrupt is executed. although the g bit can be set within an interrupt service routine, nesting interrupts in this way should only be done when there is a clear understanding of latency and of the arbitration mechanism. 4.2 interrupt handling when an interrupt is recognized, the current instruction com- pletes its execution. the return address (the current value in the program counter) is pushed onto the stack and execution contin- table 8: interrupt priority sequence priority (4 highest, 1 lowest) interrupt 4 miw (edgei) 3 timer0 (tmri0) 2 timer1 (tmri1) 1 software (intr)
14 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications ues at the address specified by the unique interrupt vector (see table 11). this process takes five instruction cycles. at the end of the interrupt service routine, a return from interrupt (reti) instruction is executed. the reti instruction causes the saved address to be pulled off the stack in reverse order. the g bit is set and instruction execution resumes at the return address. the acex microcontroller is capable of supporting four interrupts. three are maskable through the g bit of the sr and the fourth (software interrupt) is not inhibited by the g bit (see figure 13). the software interrupt instruction is generated by the execution of the intr instruction. once the intr instruction is executed, the acex core will interrupt whether the g bit is set or not. the intr interrupt is executed in the same manner as the other maskable interrupts where the program counter register is stacked and the g bit is cleared. this means, if the g bit was enabled prior to the software interrupt the reti instruction must be used to return from interrupt in order to restore the g bit to its previous state. however, if the g bit was not enabled prior to the software interrupt the ret instruction must be used. in case of multiple interrupts occurring at the same time, the acex microcontroller core has prioritized the interrupts. the interrupt priority sequence in shown in table 8. 4.3 addressing modes the acex microcontroller has seven addressing modes indexed, indirect, direct, immediate, absolute jump, and relative jump. indexed the instruction allows an 8-bit unsigned offset value to be added to the 10-lsbs of the x-pointer yielding a new effective address. this mode can be used to address either data or program memory space. indirect the instruction allows the x-pointer to address any location within the data memory space. direct the instruction contains an 8-bit address field that directly points to the data memory space as an operand. immediate the instruction contains an 8-bit immediate field as an operand. inherent this instruction has no operands associated with it. absolute the instruction contains a 10-bit address that directly points to a location in the program memory space. there are two operands associated with this addressing mode. each operand contains a byte of an address. this mode is used only for the long jump (jmp) and jsr instructions. relative this mode is used for the short jump (jp) instructions where the operand is a value relative to the current pc address. with this instruction, software is limited to the number of bytes it can jump, -31 or +32. figure 13: basic interrupt structure t1pnd t0pnd wkpnd t1en t0int en wkint en g intr t1 t0 miw interrupt pending flags interrupt enable bits global interrupt enable interrupt interrupt source with priority
15 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications table 9: instruction addressing modes instruction immediate direct indexed indirect inherent relative absolute adc a, # a, m a, [x] add a, # a, m a, [x] and a, # a, m a, [x] or a, # a, m a, [x] subc a, # a, m a, [x] xor a, # a, m a, [x] clr max inc max dec max ifeq a, # x, # m,# a, m a, [x] ifgt a, # x, # a, m a, [x] ifne a, # a, m a, [x] iflt x, # sc no-op rc no-op ifc no-op ifnc no-op invc no-op ldc #, m stc #, m rlc ma rrc ma ld a, # x, # m, # a, m a, [00,x] a, [x] st a, m a, [00,x] a, [x] ld m, m nop no-op ifbit #, a #, m sbit #, m #, [x] rbit #, m #, [x] jp rel jsr m jmp m ret no-op reti no-op intr no-op
16 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications mnemonic operand bytescycles flags affected adc a, [x] 1 1 c,h,z,n adc a, m 2 2 c,h,z,n adc a, # 2 2 c,h,z,n add a, [x] 1 1 z,n add a, m 2 2 z,n add a, # 2 2 z,n and a, [x] 1 1 z,n and a, # 2 2 z,n and a, m 2 2 z,n clr x 1 1 z clr a 1 1 z,n,c,h clr m 2 1 z,n,c,h dec a 1 1 z,n dec m 2 2 z,n dec x 1 1 z ifbit #, a 1 1 none ifbit #, m 2 2 none ifc 1 1 none ifeq a, [x] 1 1 none ifeq a, # 2 2 none ifeq a, m 2 2 none ifeq m, # 3 3 none ifeq x, # 3 3 none ifgt a, # 2 2 none ifgt a, [x] 1 1 none ifgt a, m 2 2 none ifgt x, # 3 3 none ifne a, # 2 2 none ifne a, [x] 1 1 none ifne a, m 2 2 none iflt x, # 3 3 none ifnc 1 1 none inc a 1 1 z,n inc m 2 2 z,n inc x 1 1 z intr 1 5 none invc 1 1 c mnemonic operand bytescycles flags affected jmp m 3 4 none jp 1 1 none jsr m 3 5 none ld a, # 2 2 none ld a, [00,x] 2 3 none ld a, [x] 1 1 none ld a, m 2 2 none ld m, # 3 3 none ld x, # 3 3 none ldc #, m 2 2 c ld m, m 3 3 none nop 1 1 none or a, # 2 2 z,n or a, [x] 1 1 z,n or a, m 2 2 z,n rbit #, [x] 1 2 z,n rbit #, m 2 2 z,n rc 1 1 c,h ret 1 5 none reti 1 5 none rlc a 1 1 c,z,n rlc m 2 2 c,z,n rrc a 1 1 c,z,n rrc m 2 2 c,z,n sbit #, [x] 1 2 z,n sbit #, m 2 2 z,n sc 1 1 c,h st a, [00,x] 2 3 none st a, [x] 1 1 none st a, m 2 2 none stc #, m 2 2 z,n subc a, # 2 2 c,h,z,n subc a, [x] 1 1 c,h,z,n subc a, m 2 2 c,h,z,n xor a, # 2 2 z,n xor a, [x] 1 1 z,n xor a, m 2 2 z,n table 10: instruction cycles and bytes
17 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 4.4 memory map all i/o ports, peripheral registers and core registers, except the accumulator and the program counter are mapped into memory s pace. table 11: memory map address memory space block contents 0x00 - 0x3f data sram data ram 0x40 - 0x7f data eeprom data eeprom 0xaa data timer1 t1ralo register 0xab data timer1 t1rahi register 0xac data timer1 tmr1lo register 0xad data timer1 tmr1hi register 0xae data timer1 t1cntrl register 0xaf data miw wkedg register 0xb0 data miw wkpnd register 0xb1 data miw wken register 0xb2 data i/o portgd register 0xb3 data i/o portgc register 0xb4 data i/o portgp register 0xb5 data timer0 wdsvr register 0xb6 data timer0 t0cntrl register 0xb7 data clock halt mode register 0xb8 - 0xbc reserved 0xbd data lbd lbd register 0xbe data core xhi register 0xbf data core xlo register 0xc0 data core power mode clear (pmc) register 0xce data core sp register 0xcf data core status register (sr) 0xc00 - 0xff5 program eeprom code eeprom 0xff6 - 0xff7 program core timer0 interrupt vector 0xff8 - 0xff9 program core timer1 interrupt vector 0xffa - 0xffb program core miw interrupt vector 0xffc - 0xffd program core software interrupt vector 0xffe - 0xfff reserved
18 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 4.5 memory the acex microcontroller device has 64 bytes of sram and 64 bytes of eeprom available for data storage. the device also has 1k bytes of eeprom for program storage. software can read and write to sram and data eeprom but can only read from the code eeprom. while in normal mode, the code eeprom is protected from any writes. the code eeprom can only be rewritten when the device is in program mode and if the write disable (wdis) bit of the initialization register is not set to 1. while in normal mode, the user can write to the data eeprom array by 1) polling the ready (r) flag of the sr, then 2) executing the appropriate instruction. if the r flag is 1, the data eeprom block is ready to perform the next write. if the r flag is 0, the data eeprom is busy. the data eeprom array will reset the r flag after the completion of a write cycle. attempts to read, write, or enter halt/idle mode while the data eeprom is busy (r = 0) can affect the current data being written. 4.6 initialization registers the acex microcontroller has two 8-bit wide initialization regis- ters. these registers are read from the memory space on power- up to initialize certain on-chip peripherals. figure 14 provides a detailed description of initialization register 1. the initialization register 2 is used to trim the internal oscillator to its appropriate frequency. this register is pre-programmed in the factory to yield an internal instruction clock of 1mhz. both initialization registers 1 and 2 can be read from and written to during programming mode. however, re-trimming the internal oscillator (writing to the initialization register 2) once it has left the factory is discouraged . figure 14: initialization register 1 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 cmode[0] cmode[1] wden boren blsel 9 ubd 7,8 wdis 7,8 rdis 7,8 (0) rdis 7,8 if set, disables attempts to read the contents from the memory while in programming mode (1) wdis 7,8 if set, disables attempts to write new contents to the memory while in programming mode (2) ubd 7,8 if set, the device will not allow any writes to occur in the upper block of data eeprom (0x60-0x7f) (3) blsel 9 if set, the brown-out reset (bor) voltage reference level is set to its higher range for the ace1101 if not set, the bor voltage reference level is set to its lower range for the ace1101l (4) boren if set, allows a bor to occur if v cc falls below the voltage reference level (5) wden if set, enables the on-chip processor watchdog circuit (6) cmode[1] clock mode select bit 1 (see table 17) (7) cmode[0] clock mode select bit 0 (see table 17) 7 if both the wdis and rdis bits are set, the device will no longer be able to be placed into program mode. 8 if the rdis or ubd bits are not set while the wdis bit is not set, then the rdis and ubd bits can be reset. 9 the blsel bit is set to its appropriate level in the factory. if writing to the initialization register is necessary, be sure to maintain blsel set value.
19 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 5.0 timer 1 timer 1 is a versatile 16-bit timer that can operate in one of three modes: pulse width modulation (pwm) mode, which generates pulses of a specified width and duty cycle external event counter mode, which counts occurrences of an external event standard input capture mode, which measures the elapsed time between occurrences of external events timer 1 contains a 16-bit timer/counter register (tmr1), a 16-bit auto-reload/capture register (t1ra), and an 8-bit control register (t1cntrl). all register are memory-mapped for simple access through the core with both the 16-bit registers organized as a pair of 8-bit register bytes {tmr1hi, tmr1lo} and {t1rahi, t1ralo}. depending on the operating mode, the timer contains an external input or output (t1) that is multiplexed with the i/o pin g2. by default, the tmr1 is reset to 0xffff, t1ra is reset to 0x0000, and t1cntrl is reset to 0x00. the timer can be started or stopped through the t1cntrl register bit t1c0. when running, the timer counts down (decre- ments) every clock cycle. depending on the operating mode, the timer s clock is either the instruction clock or a transition on the t1 input. in addition, occurrences of timer underflow (transitions from 0x0000 to 0xffff/t1ra value) can either generate an interrupt and/or toggle the t1 output pin. timer 1 s interrupt (tmri1) can be enabled by interrupt enable (t1en) bit in the t1cntrl register. when the timer interrupt is enabled, depending on the operating mode, the source of the interrupt is a timer underflow and/or a timer capture. 5.1 timer control bits reading and writing to the t1cntrl register controls the timer s operation. by writing to the control bits, the user can enable or disable the timer interrupts, set the mode of operation, and start or stop the timer. the t1cntrl register bits are described in tables 12 and 13. table 12: timer1 control register definition (t1cntrl) t1cntrl register name function bit 7 t1c3 timer timer1 control bit 3 (see table 13) bit 6 t1c2 timer timer1 control bit 2 (see table 13) bit 5 t1c1 timer timer1 control bit 1 (see table 13) bit 4 t1c0 timer timer1 run: 1 = start timer, 0 = stop timer; or timer timer1 underflow interrupt pending flag in input capture mode bit 3 t1pnd timer1 interrupt pending flag: 1 = timer1 interrupt pending, 0 = timer1 interrupt not pending bit 2 t1en timer1 interrupt enable bit: 1 = timer1 interrupt enabled, 0 = timer1 interrupt disabled bit 1 ----------- reserved bit 0 ----------- reserved table 13: timer1 operating mode selection t1 t1 t1 timer mode interrupt a timer counts on c3 c2 c1 source 0 0 0 mode 2 timer1 underflow t1 pos. edge 0 0 1 mode 2 timer1 underflow t1 neg. edge 1 0 1 mode 1 t1 toggle autoreload t1ra instruction clock 1 0 0 mode 1 no t1 toggle autoreload t1ra instruction clock 0 1 0 mode 3 captures: t1 pos. edge pos. t1 edge instruction clock 0 1 1 mode 3 captures: t1 neg. edge neg. t1 edge instruction clock
20 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 5.2 mode 1: pulse width modulation (pwm) mode in the pwm mode, the timer counts down at the instruction clock rate. when an underflow occurs, the timer register is reloaded from t1ra and the count down proceeds from the loaded value. at every underflow, a pending flag (t1pnd) located in the t1cntrl regis- ter is set. software must then clear the t1pnd flag and load the t1ra register with an alternate pwm value. in addition, the timer can be configured to toggle the t1 output bit upon underflow. configuring the timer to toggle t1 results in the generation of a signal outputted from port g2 with the width and duty cycle controlled by the values stored in the t1ra. a block diagram of the timer s pwm mode of operation is shown in figure 15. the timer has one interrupt (tmri1) that is maskable through the t1en bit of the t1cntrl register. however, the core is only interrupted if the t1en bit and the g (global interrupt enable) bit of the sr is set. if interrupts are enabled, the timer will generate an interrupt each time t1pnd flags is set (whenever the timer underflows provided that the pending flag was cleared.) the interrupt service routine is responsible for proper handling of the t1pnd flag and the t1en bit. the interrupt will be synchronous with every rising and falling edge of the t1 output signal. generating interrupts only on rising or falling edges of t1 is achievable through appropriate handling of the t1en bit or t1pnd flag through software. the following steps show how to properly configure timer 1 to operate in the pwm mode. for this example, the t1 output signal is toggled with every timer underflow and the high and low times for the t1 output can be set to different values. the t1 output signal can start out either high or low depending on the configuration of g2; the instructions below are for starting with the t1 output high. follow the instructions in parentheses to start the t1 output low. data bus 16-bit auto-reload register (t1ra) 16-bit timer (tmr1) data latch t1 underflow interrupt instruction clock figure 15: pulse width modulation mode block diagram 1. configure t1 as an output by setting bit 2 of portgc. - sbit 2, portgc ; configure g2 as an output 2. initialize t1 to 1 (or 0) by setting (or clearing) bit 2 of portgd. - sbit 2, portgd ; set g2 high 3. load the initial pwm high (low) time into the timer register. - ld tmr1lo, #6fh ; high (low) for 1.391ms (1mhz clock) - ld tmr1hi, #05h 4. load the pwm low (high) time into the t1ra register. - ld t1ralo, #2fh ; low (high) for .303ms (1mhz clock) - ld t1rahi, #01h 5. write the appropriate control value to the t1cntrl register to select pwm mode with t1 toggle, to clear the enable bit and pending flag, and to start the timer. (see table 12 and table 13) - ld t1cntrl, #0b0h ; setting the t1c0 bit starts the timer 6. after every underflow, load t1ra with alternate values. if the user wishes to generate an interrupt on a t1 output transition, reset the pending flags and then enable the interrupt using t1en. the g bit must also be set. the interrupt service routine must reset the pending flag and perform whatever processing is desired. - rbit t1pnd, t1cntrl ; t1pnd equals 3 - ld t1ralo, #6fh ; high (low) for 1.391ms (1mhz clock) - ld t1rahi, #05h
21 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 5.3 mode 2: external event counter mode the external event counter mode operates similarly to the pwm mode; however, the timer is not clocked by the instruction clock but by transitions of the t1 input signal. the edge is selectable through the t1c1 bit of the t1cntrl register. a block diagram of the timer s external event counter mode of operation is shown in figure 16. the t1 input should be connected to an external device that generates a positive/negative-going pulse for each event. by clocking the timer through t1, the number of positive/negative transitions can be counted therefore allowing software to capture the number of events that occur. the input signal on t1 must have a pulse width equal to or greater than one instruction clock cycle. the counter can be configured to sense either positive-going or negative-going transitions on the t1 pin. the maximum frequency at which transitions can be sensed is one-half the frequency of the instruction clock. as with the pwm mode, when the counter underflows the counter is reloaded from the t1ra register and the count down proceedsfrom the loaded value. at every underflow, a pending flag (t1pnd) located in the t1cntrl register is set. software must then clear the t1pnd flag and can then load the t1ra register with an alternate value. the counter has one interrupt (tmri1) that is maskable through the t1en bit of the t1cntrl register. however, the core is only interrupted if the t1en bit and the g (global interrupt enable) bit of the sr is set. if interrupts are enabled, the counter will generate an interrupt each time the t1pnd flag is set (whenever timer underflows provided that the pending flag was cleared.) the interrupt service routine is responsible for proper handling of the t1pnd flag and the t1en bit. the following steps show how to properly configure timer 1 to operate in the external event counter mode. for this example, the counter is clocked every falling edge of the t1 input signal. follow data bus 16-bit auto-reload register (t1ra) 16-bit counter (tmr1) t1 underflow interrupt edge selector logic figure 16: external event counter mode block diagram the instructions in parentheses to clock the counter every rising edge. 1. configure t1 as an input by clearing bit 2 of portgc. - rbit 2, portgc ; configure g2 as an input 2. initialize t1 to input with pull-up by setting bit 2 of portgd. - sbit 2, portgd ; set g2 high 3. enable the global interrupt enable bit. - sbit 4, status 4. load the initial count into the tmr1 and t1ra registers. when the number of external events is detected, the counter will reach zero; however, it will not underflow until the next event is detected. to count n pulses, load the value n-1 into the registers. if it is only necessary to count the number of occurrences and no action needs to be taken at a particular count, load the value 0xffff into the registers. - ld tmr1lo, #0ffh - ld tmr1hi, #00h - ld t1ralo, #0ffh - ld t1rahi, #00h 5. write the appropriate control value to the t1cntrl register to select external event counter mode, to clock every falling edge, to set the enable bit, to clear the pending flag, and to start the counter. (see table 12 and table 13) - ld t1cntrl, #34h (#00h) ; setting the t1c0 bit starts the timer 6. when the counter underflows, the interrupt service routine must clear the t1pnd flag and take whatever action is required once the number of events occurs. if the software wishes to merely count the number of events and the anticipated number may exceed 65,536, the interrupt service routine should record the number of underflows by incrementing a counter in memory. software can then calculate the correct event count. - rbit t1pnd, t1cntrl ; t1pnd equals 3
22 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 5.4 mode 3: input capture mode in the input capture mode, the timer is used to measure elapsed time between edges of an input signal. once the timer is configured for this mode, the timer starts counting down immediately at the instruction clock rate. the timer 1 will then transfer the current value of the tmr1 register into the t1ra register as soon as the selected edge of t1 is sensed. the input signal on t1 must have a pulse width equal to or greater than one instruction clock cycle. at every t1ra capture, software can then store the values into ram to calculate the elapsed time between edges on t1. at any given time (with proper consider- ation of the state of t1) the timer can be configured to capture on positive-going or negative-going edges. a block diagram of the timer s input capture mode of operation is shown in figure 17. the timer has one interrupt (tmri1) that is maskable through the t1en bit of the t1cntrl register. however, the core is only interrupted if the t1en bit and the g (global interrupt enable) bit of the sr is set. the input capture mode contains two interrupt pending flags 1) the tmr1 register capture in t1ra (t1pnd) and 2) timer underflow (t1c0). if interrupts are enabled, the timer will generate an interrupt each time a pending flag is set (provided that the pending flag was previously cleared.) the interrupt service routine is responsible for proper handling of the t1pnd flag, t1c0 flag, and the t1en bit. for this operating mode, the t1c0 control bit serves as the timer underflow interrupt pending flag. the timer 1 interrupt service routine must read both the t1pnd and t1c0 flags to determine the cause of the interrupt. a set t1c0 flag means that a timer underflow occurred whereas a set t1pnd flag means that a capture occurred in t1ra. it is possible that both flags will be found set, meaning that both events occurred at the same time. the interrupt service routine should take this possibility into consideration. because the t1c0 bit is used as the underflow interrupt pending flag, it is not available for use as a start/stop bit as in the other modes. the tmr1 register counts down continuously at the instruction clock rate starting from the time that the input capture mode is selected. (see table 12and table 13) to stop the timer from running, you must change the mode to an alternate mode (pwm or external event counter) while resetting the t1c0 bit. the input pins can be independently configured to sense positive- going or negative-going transitions. the edge sensitivity of pin t1 is controlled by bit t1c1 as indicated in table 13. the edge sensitivity of a pin can be changed without leaving the data bus 16-bit input capture register (t1ra) 16-bit timer (tmr1) t1 capture interrupt edge selector logic instruction clock underflow interrupt figure 17: input capture mode block diagram input capture mode even while the timer is running. this feature allows you to measure the width of a pulse received on an input pin. for example, the t1 pin can be programmed to be sensitive to a positive-going edge. when the positive edge is sensed, the tmr1 register contents is transferred to the t1ra register and a timer 1 interrupt is generated. the timer 1 interrupt service routine records the contents of the t1ra register, changes the edge sensitivity from positive to negative-going edge, and clears the t1pnd flag. when the negative-going edge is sensed another timer 1 interrupt is generated. the interrupt service routine reads the t1ra register again. the difference between the previous reading and the current reading reflects the elapsed time between the positive edge and negative edge of the t1 input signal i.e. the width of the positive-going pulse. remember that the timer1 interrupt service routine must test the t1c0 and t1pnd flags to determine the cause of the interrupt. if the t1c0 flag caused the interrupt, the interrupt service routine should record the occurrence of an underflow by incrementing a counter in memory or by some other means. the software that calculates the elapsed time between captures should take into account the number of underflow that occurred when making its calculation. the following steps show how to properly configure timer 1 to operate in the input capture mode. 1. configure t1 as an input by clearing bit 2 of portgc. - rbit 2, portgc ; configure g2 as an input 2. initialize t1 to input with pull-up by setting bit 2 of portgd. - sbit 2, portgd ; set g2 high 3. enable the global interrupt enable bit. - sbit 4, status 4. with the timer stopped, load the initial time into the tmr1 register (typically the value is 0xffff.) - ld tmr1lo, #0ffh - ld tmr1hi, #00h 5. write the appropriate control value to the t1cntrl register to select input capture mode, to sense the appropriate edge, to set the enable bit, and to clear the pending flags. (see table 12 and table 13) - ld t1cntrl, #64h ; t1c1 is the edge select bit 6. as soon as the input capture mode is enabled, the timer starts counting. when the selected edge is sensed on t1, the t1ra register is loaded and a timer 1 interrupt is triggered.
23 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 6.0 timer 0 timer 0 is a 12-bit free running idle timer. upon power-up or any reset, the timer is reset to 0x000 and then counts up continuously based on the instruction clock of 1mhz (1 s). software cannot read from or write to this timer. however, software can monitor the timer s pending (t0pnd) bit that is set every 8192 cycles (initially 4096 cycles after a reset). the t0pnd flag is set every other time the timer overflows (transitions from 0xfff to 0x000) through a divide-by-2 circuit. after an overflow, the timer will reset and restart its counting sequence. software can either poll the t0pnd bit or vector to an interrupt subroutine. in order to interrupt on a t0pnd, software must be sure to enable the timer 0 interrupt enable (t0inten) bit in the timer 0 control (t0cntrl) register and also make sure the g bit is set in sr. once the timer interrupt is serviced, software should reset the t0pnd bit before exiting the routine. timer 0 supports the following functions: 1. exiting from idle mode (see section 16.0 for details.) 2. start up delay from halt mode 3. watchdog pre-scaler (see section 7.0 for details.) the t0inten bit is a read/write bit. if set to 0, interrupt requests from the timer 0 are ignored. if set to 1, interrupt requests are accepted. upon reset, the t0inten bit is reset to 0. the t0pnd bit is a read/write bit. if set to 1, it indicates that a timer 0 interrupt is pending. this bit is set by a timer 0 overflow and is reset by software or system reset. the wkinten bit is used in the multi-input wakeup/interrupt block. see section 8 for details. 7.0 watchdog the watchdog timer is used to reset the device and safely recover in the rare event of a processor runaway condition. the 12-bit timer 0 is used as a pre-scaler for watchdog timer. the watchdog timer must be serviced before every 61,440 cycles but no sooner than 4096 cycles since the last watchdog reset. the watchdog is serviced through software by writing the value 0x1b to the watchdog service (wdsvr) register (see figure 19). the part resets automatically if the watchdog is serviced too frequent, or not frequent enough. the watchdog timer must be enabled through the watchdog enable bit (wden) in the initialization register. the wden bit can only be set while the device is in programming mode. once set, the watchdog will always be powered-up enabled. software cannot disable the watchdog. the watchdog timer can only be disabled in programming mode by resetting the wden bit as long as the memory write protect (wdis) feature is not enabled. warning ensure that the watchdog timer has been serviced before enter- ing idle mode because it remains operational during this time. figure 18: timer 0 control register definition (t0cntrl) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 wkinten x x x x x t0pnd t0inten figure 19: watchdog server register (wdsvr) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 00011011
24 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 8.0 multi-input wakeup/interrupt block the multi-input wakeup (miw)/interrupt contains three memory- mapped registers associated with this circuit: wkedg (wakeup edge), wken (wakeup enable), and wkpnd (wakeup pending). each register has 8-bits with each bit corresponding to an input pins as shown in figure 20. all three registers are initialized to zero upon reset. the wkedg register establishes the edge sensitivity for each of the wake- up input pin: either positive going-edge (0) or negative-going edge (1). the wken register enables (1) or disables (0) each of the port pins for the wakeup/interrupt function. the wakeup i/os used for the wakeup/interrupt function must also be configured as an input pin in its associated port configuration register. however, an interrupt of the core will not occur unless interrupts are enabled for the block via bit 7 of the t0cntrl register (see figure 18) and the g (global interrupt enable) bit of the sr is set. the wkpnd register contains the pending flags corresponding to each of the port pins (1 for wakeup/interrupt pending, 0 for wakeup/interrupt not pending). to use the multi-input wakeup/interrupt circuit, perform the steps listed below. performing the steps in the order shown will prevent false triggering of a wakeup/interrupt condition. this same procedure should be used following any type of reset because the wakeup inputs are left floating after resets resulting in unknown data on the port inputs. 1. clear the wken register. - clr wken 2. if necessary, write to the port configuration register to select the desired port pins to be configured as inputs. - rbit 4, portgc ; g4 3. if necessary, write to the port data register to select the desired port pins input state. - sbit 4, portgd ; pull-up 4. write the wkedg register to select the desired type of edge sensitivity for each of the pins used. - ld wkedg, #0ffh ; all negative-going edges 5. clear the wkpnd register to cancel any pending bits. - clr wkpnd 6. set the wken bits associated with the pins to be used, thus enabling those pins for the wakeup/interrupt function. - ld wken, #10h ; enabling g4 once the multi-input wakeup/interrupt function has been config- ured, a transition sensed on any of the i/o pins will set the corresponding bit in the wkpnd register. the wkpnd bits , where the corresponding enable (wken ) bits are set, will bring the device out of the halt/idle mode and can also trigger an interrupt if interrupts are enabled. the interrupt service routine can read the wkpnd register to determine which pin sensed the interrupt. the interrupt service routine or other software should clear the pending bit. the device will not enter halt/idle mode as long as a wkpnd pending bit is pending and enabled. the user has the responsibility of clearing the pending flags before attempting to enter the halt/idle mode. upon reset, the wkedg register is configured to select positive- going edge sensitivity for all wakeup inputs. if the user wishes to change the edge sensitivity of a port pin, use the following proce- dure to avoid false triggering of a wakeup/interrupt condition. 1. clear the wken bit associated with the pin to disable that pin. 2. write the wkedg register to select the new type of edge sensitivity for the pin. 3. clear the wkpnd bit associated with the pin. 4. set the wken bit associated with the pin to re-enable it. portg provides the user with three fully selectable, edge sensi- tive interrupts that are all vectored into the same service subrou- tine. the interrupt from portg shares logic with the wakeup circuitry. the wken register allows interrupts from portg to be individually enabled or disabled. the wkedg register specifies the trigger condition to be either a positive or a negative edge. the wkpnd register latches in the pending trigger conditions. since portg is also used for exiting the device from the halt/idle mode, the user can elect to exit the halt/idle mode either with or without the interrupt enabled. if the user elects to disable the interrupt, then the device restarts execution from the point at which it was stopped (first instruction cycle of the instruction following halt/idle mode entrance instruction). in the other case, the device finishes the instruction that was being executed when the part was stopped and then branches to the interrupt service routine. the device then reverts to normal operation. figure 21: multi-input wakeup (miwu) block diagram figure 20: multi-input wakeup (miw) register definition wkedg, wken, wkpnd bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 10 g7 10 g6 g5 g4 g3 g2 g1 g0 10 available only on the 14-pin package option data bus 7 0 wken[7:0] 0 7 wkedg[0:7] wkpnd[0:7] g7 g0 edgei wkout wkinten 11 11 wkinten: bit 7 of t0cntrl
25 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 9.0 i/o port the six i/o pins (eight on 14-pin package option) are bi-directional (see figure 22) with the exception of g3 which is always an input with weak pull-up. the bi-directional i/o pins can be individually configured by software to operate as high-impedance inputs, as inputs with weak pull-up, or as push-pull outputs. the operating state is determined by the contents of the corresponding bits in the data and configuration registers. each bi-directional i/o pin can be used for general purpose i/o, or in some cases, for a specific alternate function determined by the on-chip hardware. 9.1 i/o registers the i/o pins (g0-g7) have three memory-mapped port registers associated with the i/o circuitry: a port configuration register (portgc), a port data register (portgd), and a port input register (portgp). portgc is used to configure the pins as inputs or outputs. a pin may be configured as an input by writing a 0 or as an output by writing a 1 to its corresponding portgc bit. if a pin is configured as an output, its portgd bit represents the state of the pin (1 = logic high, 0 = logic low). if the pin is configured as an input, its portgd bit selects whether the pin is a weak pull- up or a high-impedence input. table 14 provides details of the port configuration options. the port configuration and data registers can both be read from or written to. reading portgp returns the value of the port pins regardless of how the pins are configured. since this device supports miw, portg inputs have schmitt triggers. table 14: i/o configuration options configuration bit data bit port pin configuration 0 0 high-impedence input (tri-state input) 0 1 input with pull-up (weak one input) 1 0 push-pull zero output 1 1 push-pull one output figure 22: portg logic diagram gxpullen gxbufen gxout gxin padgx figure 23: i/o register bit assignments (portgc, portgd, portgd) portgc, porgd, portgd bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 g7 12 g6 12 g5 g4 g3 13 g2 g1 g0 12 available only on the 14-pin package option 13 g3 is always an input with weak pull-up.
26 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 10.0 in-circuit programming specification 14, 15 the acex microcontroller supports in-circuit programming of the internal data eeprom, code eeprom, and the initialization regis- ters. an externally controlled four wire interface consisting of a load control pin (g3), a serial data shift-in input pin (g4), a serial data shift-out output pin (g2), and a clock pin (g1) is used to access the on-chip memory locations. communication between the acex microcontroller and the external programmer is made through a 32- bit command and response word described in table 15. the serial data timing for the four-wire interface is shown in figure 25 and the programming protocol is shown in figure 24. 10.1 write sequence the external programmer brings the acex microcontroller into programming mode by applying a super voltage level to the load pin. the external programmer then needs to set the load pin to 5v before shifting in the 32-bit serial command word using the shift_in and clock signals. by definition, bit 31 of the command word is shifted in first. at the same time, the acex microcontroller shifts out the 32-bit serial response to the last command on the shift_out pin. it is recommended that the external programmer samples this signal t access (1 s) after the rising edge of the clock signal. the serial response word, sent immediately after entering programming mode, contains indeterminate data. after 32 bits have been shifted into the device, the external programmer must set the load signal to 0v, and then apply two clock pulses as shown in figure 24 to complete program cycle. the shift_out pin acts as the handshaking signal between the device and programming hardware once the load signal is brought low. the device sets shift_out low by the time the programmer has sent the second rising edge during the load = 0v phase (if the timing specifications in figure 24 are obeyed). the device will set the r bit of the status register when the write operation has completed. the external programmer must wait for the shift_out pin to go high before bringing the load signal to 5v to initiate a normal command cycle. 10.2 read sequence when reading the device after a write, the external programmer must set the load signal to 5v before it sends the new command word. next, the 32-bit serial command word (for during a read) should be shifted into the device using the shift_in and the clock signals while the data from the previous command is serially shifted out on the shift_out pin. after the read command has been shifted into the device, the external programmer must, once again, set the load signal to 0v and apply two clock pulses as shown in figure 24 to complete read cycle. data from the selected memory location, will be latched into the lower 8 bits of the command word shortly after the second rising edge of the clock signal. writing a series of bytes to the device is achieved by sending a series of write command words while observing the devices handshaking requirements. reading a series of bytes from the device is achieved by sending a series of read command words with the desired addresses in sequence and reading the following response words to verify the correct address and data contents. the addresses of the data eeprom and code eeprom loca- tions are the same as those used in normal operation. powering down the device will cause the part to exit programming mode. table 15: 32-bit command and response word bit number input command word output response word bits 31 C 30 must be set to 0 x bit 29 set to 1 to read/write data eeprom or the initial- x ization registers, otherwise 0 bit 28 set to 1 to read/write code eeprom, x otherwise 0 bits 27 C 25 must be set to 0 x bit 24 set to 1 to read, 0 to write x bits 23 C 18 must be set to 0 x bits 17 C 8 address of the byte to be read or written same as input command word bits 7 C 0 data to be programm ed or zero if data is to be read programmed data or data read at specified address 14 ffor further information see application note an-8005. 15 during in-circuit programming, g5 must be either not connected or driven high.
27 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications figure 25- serial data timing figure 24- programming protocol 15 load (g3) clock (g1) shift_in (g4) shift_out (g2) (in write mode) bit 31 bit 30 bit 0 bit 31 shift_out (g2) (in read mode) t sv1 t sv2 a a: start of programming cycle 32 clock pulses t load2 busy ready a t load4 t load3 t ready busy low by 2nd clock pulse enter prog. mode t load1 valid valid shift_in (g4) clock (g1) t hi t lo t dis t dih t dos t doh t access shift_out (g2)
28 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 11.0 brown-out/low battery detect circuit the brown-out reset (bor) and low battery detect (lbd) circuits on the acex microcontroller have been designed to offer two types of voltage reference comparators. the sections below will describe the functionality of both circuits. figure 26: bor/lbd block diagram can be thought of as a supplement function to the power-on reset when v cc does not fall below ~1.5v. the power-on reset circuit works best when v cc starts from zero and rises sharply. so in applications where v cc is not constant, the bor will give added device stability. the bor circuit must be enabled through the bor enable bit (boren) in the initialization register. the boren bit can only be set while the device is in programming mode. once set, the bor will always be powered-up enabled. software cannot disable the bor. the bor can only be disabled in programming mode by resetting the boren bit as long as the global write protect (wdis) feature is not enabled. 11.2 low battery detect the low battery detect (lbd) circuit allows software to monitor the v cc level at the lower voltage ranges. lbd has an eight level software programmable voltage reference threshold that can be changed on the fly. once v cc falls below the selected threshold, the lbd flag in the lbd control register is set. the lbd flag will hold its value until v cc rises above the threshold. (see table 16) the lbd bit is read only. if lbd is 0, it indicates that the v cc level is higher than the selected threshold. if lbd is 1, it indicates that the v cc level is below the selected threshold. the threshold level can be adjusted up to eight levels using the three trim bits (bat_trim[2:0]) of the lbd control register. the lbd flag does not cause any hardware actions or an interruption of the processor. it is for software monitoring only. the lbd function is disabled during halt/idle mode. after exiting halt/idle, software must wait at lease 10 s before reading the lbd bit to ensure that the internal circuit has stabi- lized. 16 see figure 14 for information on blsel. 17 bor is not available on the ace1101b device. 7 6 5 4 3 2 1 0 adjust reference voltage lbd control register + _ + _ to reset logic vcc bor lbd 1 0 s 1.8v 2.2v blsel 16 table 16: lbd control register definition bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 bat_trim[2:0] x x x x lbd voltage reference level bat_trim[2] bat_trim[1] bat_trim[0] range ( 20%) 1 0 0 0 2.9 - 3.0 2 0 0 1 2.8 - 2.9 3 0 1 0 2.7 - 2.8 4 0 1 1 2.6 - 2.7 5 1 0 0 2.5 - 2.6 6 1 0 1 2.4 - 2.5 7 1 1 0 2.3 - 2.4 8 1 1 1 2.2 - 2.3 11.1 brown-out reset 17 the brown-out reset (bor) function is used to hold the device in reset when v cc drops below a fixed threshold. (see bor electri- cal characteristics for threshold voltage.) while in reset, the device is held in its initial condition until v cc rises above the threshold value. shortly after v cc rises above the threshold value, an internal reset sequence is started. after the reset sequence, the core fetches the first instruction and starts normal operation. on the devices, the bor should be used in situations when v cc rises and falls slowly and in situations when v cc does not fall to zero before rising back to operating range. the brown-out reset
29 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 12.0 reset block when a reset sequence is initiated, all i/o registers will be reset setting all i/os to high-impedence inputs. the system clock is restarted after the required clock start-up delay. a reset is gener- ated by any one of the following three conditions: power-on reset (as described in section 13.0) brown-out reset (as described in section 11.1) watchdog reset (as described in section 7.0) external reset 18 (as described in section 13.0) 13.0 power-on-reset the power-on reset (por) circuit is guaranteed to work if the rate of rise of v cc is no slower than 10ms/1volt. the por circuit was designed to respond to fast low to high transitions between 0v and v cc . the circuit will not work if v cc does not drop to 0v before the next power-up sequence. in applications where 1) the v cc rise is slower than 10ms/1 volt or 2) v cc does not drop to 0v before the next power-up sequence the external reset option should be used. the external reset provides a way to properly reset the acex microcontroller if por cannot be used in the application. the external reset pin contains an internal pull-up resistor. therefore, to reset the device the reset pin should be held low for at least 2ms so that the internal clock has enough time to stabilize. 14.0 clock the acex microcontroller has an on-board oscillator trimmed to a frequency of 2mhz who is divided down by two yielding a 1mhz frequency. (see ac electrical characteristics.) upon power-up, the on-chip oscillator runs continuously unless entering halt mode or using an external clock source. if required, an external oscillator circuit may be used depending on the states of the cmode bits of the initialization register. (see table 17) when the device is driven using an external clock, the clock input to the device (g1/cki) can range between dc to 4mhz. for external crystal configuration, the output clock (cko) is on the g0 pin. (see figure 28) if an external crystal or rc is used, internally the input frequency (cki) is divided-down by four to yield the corresponding instruction clock. if the device is configured for an external square clock, it will not be divided. table 17: cmodex bit definition cmode[1] cmode[0] clock type 0 0 internal 1 mhz clock 0 1 external square clock 1 0 external crystal/resonator 1 1 external rc clock figure 27: bor and por circuit relationship diagram v cc (pin 8) bor reset circuit output global reset to logic external reset pin (14-pin only) b a output por (pin 7) output v cc time bor output 1.75 0 v cc v cc 0 por output por output pulse 1.8v 0 v cc v cc 5.0v 0 the reset circuit will trigger when inputs a or b transition from high to low. at that time the global reset signal will go high which will reset all controller logic. the global reset will go high and stay high for around 1 s. 18 available only on the 14-pin package option.
30 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications figure 29: halt register definition bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 undefined undefined undefined undefined undefined undefined eidle ehalt figure 28: crystal (a) and rc (b) oscillator diagrams 33pf 33pf 1m cki (g1) cko (g0) a) c v cc r cki (g1) cko (g0) b) normal mode ld halt, #01h halt multi-input wakeup ld pmc, #00h resume normal mode normal mode idle mode resume normal mode ld pmc, #00h timer0 underflow multi-input wakeup ld halt, #01h 15.0 halt mode the halt mode is a power saving feature that almost completely shuts down the device for current conservation. the device is placed into halt mode by setting the halt enable bit (ehalt) of the halt register through software using only the ld m, # instruction. ehalt is a write only bit and is automatically cleared upon exiting halt. when entering halt, the internal oscillator and all the on-chip systems including the lbd and the bor circuits are shut down. the device can exit halt mode only by the miw circuit. there- fore, prior to entering halt mode, software must configure the miw circuit accordingly. (see section 8) after a wakeup from halt, a 1ms start-up delay is initiated to allow the internal oscillator to stabilize before normal execution resumes. immedi- ately after exiting halt, software must clear the power mode clear (pmc) register by only using the ld m, # instruction. (see figure 30) 16.0 idle mode in addition to the halt mode power saving feature, the device also supports an idle mode operation. the device is placed into idle mode by setting the idle enable bit (eidle) of the halt register through software using only the ld m, # instruction. eidle is a write only bit and is automatically cleared upon exiting idle. the idle mode operation is similar to halt except the internal oscillator, the watchdog, and the timer 0 remain active while the other on-chip systems including the lbd and the bor circuits are shut down. the device can exit idle by a timer 0 overflow every 8192 cycles or/and by the miw circuit. if exiting idle mode with the miw, prior to entering, software must configure the miw circuit accordingly. (see section 8) once a wake from idle mode is triggered, the core will begin normal operation by the next clock cycle. immedi- ately after exiting idle mode, software must clear the power mode clear (pmc) register by using only the ld m, # instruction. (see figure 31) figure 30: recommended halt flow figure 31: recommended idle flow
31 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications ordering information part numbe core type max. # program operating voltage range temperature range package tape i/os memory size and 0 1 2 8 1k 2k 1.8 2.2 2.7 0 to -40 to -40 to 8-pin 8-pin 14-pin reel 5.5v 5.5v 5.5v 70 c +85c +125 c tssop dip dip ace1101mt8 x x x x x x ace1101mt8x x x x x x x x ace1101n x x x x x x ace1101n14 x x x x x x ace1101emt8 x x x x x x ace1101emt8x x x x x x x x ace1101en x x x x x x ace1101en14 x x x x x x ace1101vmt8 x x x x x x ace1101vmt8x x x x x x x x ace1101vn x x x x x x ace1101vn14 x x x x x x ace1101bmt8 x x x x x x ace1101bmt8x x x x x x x x ace1101bn x x x x x x ace1101bn14 x x x x x x ace1101bemt8 x x x x x x ace1101bemt8x x x x x x x x ace1101ben x x x x x x ace1101ben14 x x x x x x ace1101bvmt8 x x x x x x ace1101bvmt8x x x x x x x x ACE1101BVN x x x x x x ACE1101BVN14 x x x x x x ace1101lmt8 x x x x x x ace1101lmt8x x x x x x x x ace1101ln x x x x x x ace1101ln14 x x x x x x
32 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 8-pin molded tssop (mt8) order number ace1101(1101l)mt8/ace1101emt8/ace1101vmt8 ace1101bmt8/ace1101bemt8/ace1101bvmt8 package number mtc08 0.114 - 0.122 (2.90 - 3.10) 0.123 - 0.128 (3.13 - 3.30) 0.246 - 0.256 (6.25 - 6.5) 14 85 0.169 - 0.177 (4.30 - 4.50) (7.72) typ (4.16) typ (1.78) typ (0.42) typ (0.65) typ 0.002 - 0.006 (0.05 - 0.15) 0.0256 (0.65) typ. 0.0433 (1.1) max 0.0075 - 0.0118 (0.19 - 0.30) pin #1 ident 0.0035 - 0.0079 0 -8 0.020 - 0.028 (0.50 - 0.70) 0.0075 - 0.0098 (0.19 - 0.25) seating plane gage plane see detail a notes: unless otherwise specified 1. reference jedec registration mo153. variation aa. dated 7/93 land pattern recommendation detail a typ. scale: 40x physical dimensions inches (millimeters) unless otherwise noted
33 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 8-pin dip (n) order number ace1101(1101l)n/ace1101en/ace1101vn ace1101bn/ace1101ben/ACE1101BVN package number n08e physical dimensions inches (millimeters) unless otherwise noted 0.373 - 0.400 (9.474 - 10.16) 0.092 (2.337) dia + 1234 8765 0.250 - 0.005 (6.35 0.127) 87 0.032 0.005 (0.813 0.127) pin #1 option 2 rad 1 0.145 - 0.200 (3.683 - 5.080) 0.130 0.005 (3.302 0.127) 0.125 - 0.140 (3.175 - 3.556) 0.020 (0.508) min 0.018 0.003 (0.457 0.076) 90 4 typ 0.100 0.010 (2.540 0.254) 0.040 (1.016) 0.039 (0.991) typ. 20 1 0.065 (1.651) 0.050 (1.270) 0.060 (1.524) pin #1 ident option 1 0.280 min 0.300 - 0.320 (7.62 - 8.128) 0.030 (0.762) max 0.125 (3.175) dia nom 0.009 - 0.015 (0.229 - 0.381) 0.045 0.015 (1.143 0.381) 0.325 +0.040 -0.015 8.255 +1.016 -0.381 95 5 0.090 (2.286) (7.112) ident
34 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications 14-pin dip (n14) order number ace1101(1101l)n14/ace1101en14/ace1101vn14 ace1101bn14/ace1101ben14/ACE1101BVNt14 package number n014a physical dimensions inches (millimeters) unless otherwise noted
35 www.fairchildsemi.com ace1101 product family rev. b.2 ace1101 product family arithmetic controller engine (acex?) for low power applications acex development tools general information fairchild semiconductor offers different possibilities to evaluate and emulate software written for acex. acex starter kit includes: programmer board simulator software programmer software assembler and manuals cables and samples devices dip programming sockets programmer board: interfaces with a pc through a windows program using the serial communication port. this board is intended for engineering prototype and can be used for small volume production. fairchild offers factory pre-programming and serialization (for justified quantities) for a small additional cost. please refer to your local distributor for details regarding factory programming. simulator: is a windows program able to load, assemble, and debug acex programs. it is possible to place as many breakpoints as needed, trace the program execution in symbolic format, and program a device with the proper options. the acex simulator is available free-of-charge and can be downloaded from fairchild s web site at www.fairchildsemi.com/products/memory/ace acex emulator kit: fairchild also offers a low cost real-time in- circuit emulator kit that includes: emulator board emulator software assembler and manuals power supply dip14 target cable pc cable the acex emulator allows for debugging the program code in a symbolic format. it is possible to place one breakpoint and watch various data locations. it also has built-in programming capability. prototype board kits: fairchild offer two solutions for the simpli- fication of the breadboard operation so that acex applications can be quickly tested. 1) acedemo is can be used for general purpose applications 2) acetxrx for transmitting / receiving (rf, ir, rs232, rs485) applications. acedemo has 8 switches, 8 leds, rs232 voltage translator, buzzer, and a lamp with a small breadboard area. ordering p/ns starter kit: acestart1101 acestart1202 programming adapters: dip8 - acesdip8 dip14 - acesdip14 tssop8 - acestssop8 so8 - acessop8 so14 - acessop15 emulator kit: aceice (110vac) aceice_eu (220vac) prototype boards: acedemo acetxrx (specify rf freq. 433 or 315mhz) fairchild does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and fai rchild reserves the right at any time without notice to change said circuitry and specifications. life support policy fairchild's products are not authorized for use as critical components in life support devices or systems without the express w ritten approval of the president of fairchild semiconductor corporation. as used herein: 1. life support devices or systems are devices or systems which, (a) are intended for surgical implant into the body, or (b) support or sustain life, and whose failure to perform, when properly used in accordance with instructions for use provided in the labeling, can be reasonably expected to result in a significant injury to the user. 2. a critical component is any component of a life support device or system whose failure to perform can be reasonably ex- pected to cause the failure of the life support device or system, or to affect its safety or effectiveness. fairchild semiconductor fairchild semiconductor fairchild semiconductor fairchild semiconductor americaseurope hong kong japan ltd. customer response center fax: +44 (0) 1793-856858 8/f, room 808, empire centre 4f, natsume bldg. tel. 1-888-522-5372 deutsch tel: +49 (0) 8141-6102-0 68 mody road, tsimshatsui east 2-18-6, yushima, bunkyo-ku english tel: +44 (0) 1793-856856 kowloon. hong kong tokyo, 113-0034 japan fran ? ais tel: +33 (0) 1-6930-3696 tel; +852-2722-8338 tel: 81-3-3818-8840 italiano tel: +39 (0) 2-249111-1 fax: +852-2722-8383 fax: 81-3-3818-8841


▲Up To Search▲   

 
Price & Availability of ACE1101BVN

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X